package com.liu.utils;

import java.util.Date;

/**
 * Created by liu on 17-12-19.
 */
public class TimeUtil {


    public static int[] dealDateToSchool(Date date){
        int[] result = new int[2];
        int year = date.getYear()+1900;
        int term = 0;
        if(date.getMonth()>2 && date.getMonth()<6){
            term = 1;
        }
        if(date.getMonth()>9 || date.getMonth()<2){
            term = 2;
        }
        result[0]=year;
        result[1]=term;
        return result;
    }
}
